import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:flutter_app_demo/podo/forecast_list_model.dart';
import 'package:flutter_app_demo/ui_demo/ui_weather_forecast/background/background_with_rings.dart';
import 'package:flutter_app_demo/ui_demo/ui_weather_forecast/weather_list/forecast_list.dart';

class WeatherList extends StatelessWidget {
    
    final SlidingListController slidingListController;

  const WeatherList({Key key, this.slidingListController}) : super(key: key);
    
    Widget _buildTempString() {
        return Align(
            alignment: Alignment.centerLeft,
            
            child: Padding(
                padding: EdgeInsets.only(top: 100.0, left: 10.0),
                child: Text(
                    
                    '27℃',
                    style: TextStyle(
                        color: Colors.white,
                        fontSize: 65.0,
                        letterSpacing: -2,
                    ),
                
                ),
            ),
        
        );
    }
    
    @override
    Widget build(BuildContext context) {
        return Stack(
            children: <Widget>[
                
                BackgroundWithRings(),
                
                _buildTempString(),
                
                SlidingForecastList(
                    listViewModel: data,
                    controller: slidingListController,
                ),
            
            ],
        );
    }
}
